package com.citcc.web.controller.util;


/**
 * 响应结果封装
 */

public class ResponseResult {

    private Integer code;
    private String msg;
    private Object data;

    public ResponseResult() {
        this.code = 200;
        this.msg = "请求成功";
    }

    public ResponseResult(Object data) {
        this.code = 200;
        this.msg = "请求成功";
        this.data = data;
    }

    public ResponseResult(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public ResponseResult(Integer code, Object data, String msg) {
        this.code = code;
        this.data = data;
        this.msg = msg;
    }

    public ResponseResult(Integer code, Object data) {
        this.code = code;
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

}